package com.dr.cmdb.core.annotation;

import com.dr.cmdb.core.enums.LogTypeEnum;
import com.dr.cmdb.core.enums.OperateTypeEnum;

import java.lang.annotation.*;

/**
 * @ProjectName: cmdb
 * @Package: com.dr.cmdb.application.annotation
 * @Description: java类作用描述
 * @Author: duanrui
 * @CreateDate: 2021/4/17 21:31
 * @Version: 1.0
 * <p>
 * Copyright: Copyright (c) 2021
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public  @interface AuditLog {

    /**
     * 操作模块
     * @return
     */
    String operateModule() default "";

    /**
     * 操作类型
     * @return
     */
    OperateTypeEnum  operateType();

    /**
     * 操作描述
     * @return
     */
    String operateDesc() default "";


    /**
     * 传入执行类
     *
     * @return
     */
    Class[] methodsClass() default {};
}
